<?php

/**
 *  @FileComment            [订单管理控制器]
 *  @ProjectName             项目名称：shopFrame
 *  @FileName                   文件名称：OrderController.class.php
 *  @Author                       yuerengui <596580041@qq.com>
 *  @Date                          2014-10-21 9:21:59
 *  *
 */
class OrderController extends CommonController {

        private $model;

        public function __init() {
                parent::__init();
                $this->model = K('Order');
        }

        public function index() {
                //显示商品订单信息
                $allOrder = K('OrderOrderListGoodsView')->get_all_data();
                $this->assign('allOrder', $allOrder);
                $this->display();
        }

        public function send() {
                //发货处理
                $olid = Q('get.olid', 0, 'intval');
                K('OrderList')->update_data($olid);
                $this->success('发货成功！');
        }

}
